﻿using Microsoft.AspNetCore.SignalR;
using System.Threading.Tasks;
using System;

namespace TyMES.MidWare
{
    public record ControlLogic(string LineCode, string StationCode, int ControlCode);
    // ControlCode : 1-强制出站 2-NG出站   

    public class InverseControlHub : Hub
    {
        public Task SendMessage(string message)
        {
            string connId = this.Context.ConnectionId;
            string msg = $"{connId} {DateTime.Now}:{message}";
            return Clients.All.SendAsync("ReceiveMessage", "dijkstra!");
        }
    }
}
